package net.esj.basic.core.engine.tools.test.inst;

import java.net.URL;

import net.esj.basic.core.engine.tools.test.ResourceTest;

public class ResourceNameIs implements ResourceTest {

	private String name;
	
	public ResourceNameIs(String name) {
		super();
		this.name = name;
	}

	@Override
	public boolean test(URL o) {
		return (o.getPath().endsWith(name));
	}

}
